package com.njwb.consumer.config;

import com.njwb.consumer.remote.fallback.FeignRemoteUserServiceFallbackFactory;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FeignConfig {
    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    public FeignRemoteUserServiceFallbackFactory feignRemoteUserServiceFallbackFactory(){
        return new FeignRemoteUserServiceFallbackFactory();
    }

}